assistant: Use an element name
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Oct 2015 18:31:32 +0000 (14:31 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 27 Oct 2015 18:37:58 +0000 (14:37 -0400)
This will allow us to drop hardcoded type names in the theme.

gtk/gtkassistant.c

index 05d39e62ece49aa14903ab28f44ca0a211f8bdf0..91270b9cd395c5ee0b4039370e872d3b74dceedd 100644 (file)
  * To add pages to an assistant in #GtkBuilder, simply add it as a
  * child to the GtkAssistant object, and set its child properties
  * as necessary.
+ *
+ * # CSS nodes
+ *
+ * GtkAssistant has a single CSS node with the name assistant.
  */
 
 #include "config.h"
@@ -655,6 +659,8 @@ gtk_assistant_class_init (GtkAssistantClass *class)
   gtk_widget_class_bind_template_callback (widget_class, on_assistant_back);
   gtk_widget_class_bind_template_callback (widget_class, on_assistant_cancel);
   gtk_widget_class_bind_template_callback (widget_class, on_assistant_last);
+
+  gtk_widget_class_set_css_name (widget_class, "assistant");
 }
 
 static gint